package com.qqtop10.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qqtop10.manager.dao.BlackListMapper;
import com.qqtop10.manager.model.BlackList;
import com.qqtop10.manager.model.SelectBlackList;
import com.qqtop10.manager.service.BlackListService;

@Service("blackListService")
public class BlackListServiceImpl implements BlackListService {
	
	@Autowired
	private BlackListMapper blackListMapper;

	@Override
	public int deleteByPrimaryKey(int id) {
		return blackListMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(BlackList blackList) {
		return blackListMapper.updateByPrimaryKey(blackList);
	}

	@Override
	public int insert(BlackList blackList) {
		return blackListMapper.insert(blackList);
	}

	@Override
	public List<BlackList> selectAll(SelectBlackList blacklist) {
		return blackListMapper.selectAll(blacklist);
	}

	@Override
	public BlackList selectByPrimaryKey(Integer id) {
		return blackListMapper.selectByPrimaryKey(id);
	}

	@Override
	public BlackList selectByValue(String value) {
		return blackListMapper.selectByValue(value);
	}

	@Override
	public List<BlackList> selectByType(BlackList blacklist) {
		return blackListMapper.selectByType(blacklist);
	}

	@Override
	public List<BlackList> selectByCreationUser(BlackList blacklist) {
		return blackListMapper.selectByCreationUser(blacklist);
	}

	@Override
	public List<BlackList> selectByCreationTime(BlackList blacklist) {
		return blackListMapper.selectByCreationTime(blacklist);
	}

}
